package com.tju.hotel.hotel.util;

public class ServiceUrls {

    public static final String SP_MEMBER_PHONE="memberPhone";
    public static final String SP_MEMBER_PASSWORD="memberPassword";

    //private static String serviceUrl="http://172.18.112.204:8080/hotelService/";
    private static String serviceUrl="http://10.0.2.2:8080/hotelService/";
    private static String urlPostfix=".do";

    /**
     * 获取 AppReserveController 方法的路径
     *
     * @param method 方法
     * @return url
     */
    public static String getReserveMethodUrl(String method){
        return serviceUrl+"app/reserve/"+method+urlPostfix;
    }

    /**
     * 获取 AppMemberController 方法的路径
     *
     * @param method 方法名称
     * @return url
     */
    public static String getMemberMethodUrl(String method){
        return serviceUrl+"app/member/"+method+urlPostfix;
    }

    /**
     * 获取 AppMainPageController 方法的路径
     *
     * @param method 方法名称
     * @return url
     */
    public static String getMainPageMethodUrl(String method){
        return serviceUrl+"app/mainPage/"+method+urlPostfix;
    }

    public static String getAdvertisementController(String method){
        return serviceUrl+"advertisement/"+method+urlPostfix;
    }

}
